.class public Lcom/glympse/android/glympse/DlgList;
.super Lcom/glympse/android/glympse/DlgShell;
.source "DlgList.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/glympse/android/glympse/DlgList$DlgOnItemClickListener;
    }
.end annotation


# instance fields
.field private m_fDismissOnItemClick:Z

.field private m_oOnItemClickListener:Landroid/widget/AdapterView$OnItemClickListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 1
    .parameter "oContext"
    .parameter "strName"

    .prologue
    .line 30
    const v0, 0x7f030008

    invoke-direct {p0, p1, p2, v0}, Lcom/glympse/android/glympse/DlgShell;-><init>(Landroid/content/Context;Ljava/lang/String;I)V

    .line 23
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgList;->m_oOnItemClickListener:Landroid/widget/AdapterView$OnItemClickListener;

    .line 24
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/glympse/android/glympse/DlgList;->m_fDismissOnItemClick:Z

    .line 31
    return-void
.end method

.method static synthetic access$0(Lcom/glympse/android/glympse/DlgList;)Landroid/widget/AdapterView$OnItemClickListener;
    .locals 1
    .parameter

    .prologue
    .line 23
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgList;->m_oOnItemClickListener:Landroid/widget/AdapterView$OnItemClickListener;

    return-object v0
.end method

.method static synthetic access$1(Lcom/glympse/android/glympse/DlgList;)Z
    .locals 1
    .parameter

    .prologue
    .line 24
    iget-boolean v0, p0, Lcom/glympse/android/glympse/DlgList;->m_fDismissOnItemClick:Z

    return v0
.end method


# virtual methods
.method public GetListView()Landroid/widget/ListView;
    .locals 2

    .prologue
    .line 36
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgList;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0026

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/widget/ListView;

    return-object p0
.end method

.method public SetEmptyText(I)V
    .locals 3
    .parameter "nTextId"

    .prologue
    .line 59
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgList;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v2, 0x7f0c0021

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 60
    .local v0, oTextView:Landroid/widget/TextView;
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(I)V

    .line 61
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgList;->GetListView()Landroid/widget/ListView;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/widget/ListView;->setEmptyView(Landroid/view/View;)V

    .line 62
    return-void
.end method

.method public SetListAdapter(Landroid/widget/ListAdapter;Landroid/widget/AdapterView$OnItemClickListener;Z)Landroid/widget/ListView;
    .locals 2
    .parameter "oListAdapter"
    .parameter
    .parameter "fDismissOnItemClick"

    .prologue
    .line 42
    .local p2, oOnItemClickListener:Landroid/widget/AdapterView$OnItemClickListener;,"Landroid/widget/AdapterView$OnItemClickListener;"
    iput-object p2, p0, Lcom/glympse/android/glympse/DlgList;->m_oOnItemClickListener:Landroid/widget/AdapterView$OnItemClickListener;

    .line 43
    iput-boolean p3, p0, Lcom/glympse/android/glympse/DlgList;->m_fDismissOnItemClick:Z

    .line 45
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgList;->GetListView()Landroid/widget/ListView;

    move-result-object v0

    .line 46
    .local v0, listView:Landroid/widget/ListView;
    invoke-virtual {v0, p1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 47
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgList;->m_oOnItemClickListener:Landroid/widget/AdapterView$OnItemClickListener;

    if-eqz v1, :cond_0

    .line 49
    new-instance v1, Lcom/glympse/android/glympse/DlgList$DlgOnItemClickListener;

    invoke-direct {v1, p0}, Lcom/glympse/android/glympse/DlgList$DlgOnItemClickListener;-><init>(Lcom/glympse/android/glympse/DlgList;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 51
    :cond_0
    invoke-virtual {v0}, Landroid/widget/ListView;->refreshDrawableState()V

    .line 53
    return-object v0
.end method
